import styled from 'styled-components'
import border from 'components/styled/border'

const SearchPageContainer = styled.div `
    background:#fff;
    padding:0.12rem 0.16rem 0;
    height:100%;

    h1{
        padding:0.2rem;
        padding-left:0;
        /* border-bottom:1px solid #ccc; */
    }
    .tag{
        margin:0.05rem;
    }
    .am-search {
        border-bottom: 1px solid #ddd;
        }
    .sub-title {
    color: #888;
    font-size: 0.14rem;
    padding: 0.3rem 0 0.18rem 0;
    }
    .heighLight{
            color:blue
    }
    .keyWords{
         display:flex;
         flex-direction:row;
         /* justify-content:space-between; */
         align-items:center;
         line-height:0.35rem;
         padding:0.1rem 0.2rem;
         i{
             font-size:0.2rem;
             color:#ccc;
         }
         p{
             margin-left:0.1rem;
             font-size:0.16rem
         }
    }
`

const SearchDetailList =
    border(
        styled.div `
    background:#fff;
    z-index: 999;
    height:0.4rem;
    /* width:100%; */
    border-bottom:1px solid #eee;
    .active{
        font-size:0.2rem;
        position:relative;
        display:block;
        height:0.4rem;
        font-weight:600;
        
        &::after {
            border-bottom:3px solid #2e59e6;
            z-index: 999;
            position:absolute;
            bottom: 0.08rem;
            left: 0.1rem;
            width:0.2rem;
            content:''
        }
    }
    .navUl{
        margin-top:0.1rem
        display:flex;
        align-items:center;
        li{
            margin-left:0.1rem
            margin-right:0.3rem;
            color: #2f3033;
            font-size: 0.16rem;
        }
    }
`)

const GenralListContainer =
    styled.div `
    height:100%;
    overflow:scroll;
    background:#fff;
    .more{
        font-size:0.12rem;
        color:#2e59e6;
        i{
            margin-left:0.05rem;
        }
    }
    .post{
        border-bottom:1px solid #eee;
        display:flex;
        align-items:center;
        padding:0.16rem;
        .icon{
            height:0.44rem;
            width:0.44rem;
            img{
                height:100%
                width:100%
            }
        }
        .content{
            margin-left:0.15rem
            flex:1;
            h1{
                color:#2e59e6;
                font-size:0.15rem;
                line-height:0.27rem;
                font-weight:100;
            }
            h6{
                line-height:0.16rem;
                font-size:0.12rem;
                color:#8d9199;
                font-weight:100;
            }
        }
    }
    .board{
        border-bottom:1px solid #eee;
        display:flex;
        align-items:center;
        padding:0.16rem;
        .icon{
            height:0.44rem;
            width:0.44rem;
            img{
                height:100%
                width:100%
            }
        }
        .content{
            margin-left:0.15rem;
            flex:1;
            h1{
                color:#2e59e6;
                font-size:0.15rem;
                line-height:0.27rem;
                font-weight:100;
            }
            h6{
                line-height:0.16rem;
                font-size:0.12rem;
                color:#8d9199;
                font-weight:100;
            }
        }
        .more{
            div{
                display: flex;
                justify-content: center;
                align-items: center;
                width: 0.68rem;
                height: 0.32rem;
                border: 1px solid #2e59e6;
                border-radius: 0.04rem;
                font-size:0.13rem;
                i{
                    margin-top:-0.05rem
                    font-size:0.2rem;
                }
            }
        }
    }
    .result{
        display:flex;
        align-items:center;
        padding:0.12rem 0.16rem;
        border-bottom:1px solid #eee;
        p{
            flex:1;
            color:#b2b5bf;
            font-size:0.1rem;
            span{
                color:#2e59e6;
            }
        }
        
    }
    feng-em{
        color:#2e59e6
    }
    .postList{
        padding:0 0.16rem;
        li{
            border-bottom:1px #eee solid;
            padding:0.16rem 0;
            h1{
            font-size: 0.16rem;
            font-weight: 500;
            color: #2f3033;
            line-height: 0.24rem;
            margin-bottom: 0.08rem;
            }
            p{
                margin-bottom:0.1rem;
                font-size: 0.13rem;
                font-weight: 400;
                color: #2f3033;
                line-height: 0.22rem;
                display: -webkit-box;
                overflow: hidden;
                white-space: normal !important;
                text-overflow: ellipsis;
                word-wrap: break-word;
                -webkit-line-clamp: 3;
                -webkit-box-orient: vertical
            }
        }
        .bottom{
            display:flex;
            .avatar{
                display:flex;
                b{
                    img{
                    display:block;
                    width:0.16rem;
                    height:0.16rem;
                    border-radius:50%;
                    background:#ccc;
                    }
                }
                i{
                    margin-left:0.1rem;
                    color:#60636e;
                    font-size:0.12rem;
                }
            }
            p{
                margin-left:0.2rem;
                flex:1
                margin-right: 0.2rem;
                font-size: 0.12rem;
                font-weight: 600;
                color: #d7dae0;
                line-height: 0.18rem;
            }
            .sub{
                span{
                    margin: 0 0.04rem 0 0.1rem;
                    font-size: 0.1rem;
                    color: #b2b5bf;
                    line-height: 0.1rem;
                }
                i{
                    font-size: 0.1rem;
                    color: #b2b5bf;
                }
            }
        }
    }
`

export {
    SearchPageContainer,
    SearchDetailList,
    GenralListContainer
}